<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
<head>
    <meta http-equiv="content-type" content="text/html" charset="utf-8"/>
    <title>SisPre</title>

    <link rel="shortcut icon" href="<?php echo base_url()?>public/imagens/favicon2.ico" type="image/x-icon" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/bootstrap.min.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/bootstrap.noconflict.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/geral.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/cabecalho.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/menu.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/formulario.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/tabela.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/botoes.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/js/jquery-ui-1.10.3.custom/css/jquery-ui-1.10.3.custom.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/presenca-aula.css" />
        
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery-1.10.1.js"> </script>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.validate.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.maskedinput-1.3.1.min.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.tablesorter.js"></script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/bootstrap.min.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/cycle.js"> </script>
    
    <script>
            function abrePopUp(){
                $('.popUp').fadeIn(600);
                $('.popUpBack').fadeIn(600);
            }
            
            $(document).ready(function(){
               $('.listagem').tablesorter();
               $('#pesquisar').keyup(function(e){
                    var encontrou = false;
                   
                    var termo = $(this).val().toLowerCase();
                    $('.listagem > tbody > tr').each(function(){
                        $(this).find('td').each(function(){
                            if($(this).text().toLowerCase().indexOf(termo) > -1)
                                encontrou = true;
                        });
                        if(!encontrou)
                            $(this).hide();
                        else
                            $(this).show();
                        encontrou = false;
                        
                    });
                });
                
            });
        </script>
        
<body>
    <div class="popUpBack">
        <div class="popUpContainer">
            <div class="popUp"></div>
        </div>
    </div>
    
    <div class="popUpBack2">
        <div class="popUpContainer2">
            <div class="popUp2"></div>
        </div>
    </div>
    
    <div id="cabecalho-wrapper">
        <div id="cabecalho" class="clear wrapper">
            <div id="logo">
                <img src="<?php echo base_url()?>public/imagens/logos/logo.png" style="height: 80px; float: left;"/> 
            </div>
            
            <div id="titulo">Sistema de Presença Online</div>
            
            <div id="area-usuario">
                <h2>Olá <?php echo $this->session->userdata('nome')?>!</h2>
                <ul>
                    <li><a class="icone meusDados">Ver Meus Dados</a></li>
                    <li><?php echo anchor('usuario/logout','Sair', 'class="icone logout"') ?></li>
                </ul>
            </div>
        </div>
    </div>

    <div id="menu-wrapper" class="clear">
        <div id="menu" class="wrapper">
            <ul>
                <?php if(!$this->session->userdata('perfil')) {?>
                    <li><?php echo anchor('aluno','Alunos', 'aluno' == $this->uri->segment(1) ? 'class=selected' : '')?></li>
                    <li><?php echo anchor('professor','Professores', 'professor' == $this->uri->segment(1) ? 'class=selected' : '')?></li>
                    <li><?php echo anchor('turma','Turmas', 'turma' == $this->uri->segment(1) ? 'class=selected' : '')?></li>
                    <li><?php echo anchor('disciplina','Disciplinas', 'disciplina' == $this->uri->segment(1) ? 'class=selected' : '')?></li>
                    <li><?php echo anchor('curso','Cursos', 'curso' == $this->uri->segment(1) ? 'class=selected' : '')?></li>
                <?php } else{
                    if ($this->session->userdata('perfil') == 1){ ?>
                        <li><?php echo anchor('professor/home','Home', 'home' == $this->uri->segment(2) ? 'class=selected' : '')?></li>
                <?php }else{ ?>
                    <li><?php echo anchor('aluno/home','Home', 'home' == $this->uri->segment(2) ? 'class=selected' : '')?></li>
                <?php } } ?>
            </ul>
	</div>
    </div>
    
    <?php if(isset($submenu)){?>
        <div id="submenu-wrapper" class="clear">
            <div id="submenu" class="wrapper">
                <ul>
                    <?php foreach($submenu as $opc){ ?>
                        <li>
                            <?php if($opc['link'] == 'avaliacao/avaliacoesMembroFazer'){?>
                                <div class="notificacao"></div>
                            <?php } ?>
                                <?php echo anchor($opc['link'],$opc['nome'])?>
                        </li>
                    <?php } ?>
                 </ul>
            </div>
        </div>
    <?php } ?>
        
    
    <?php if($this->session->userdata('mensagem')){ ?>
	<div id='mensagem'>
    <?php echo $this->session->userdata('mensagem');
	}
	$this->session->unset_userdata('mensagem');?>
	</div>
    <?php if($this->session->userdata('erro')){ ?>
	<div id='erro'>
    <?php echo $this->session->userdata('erro');
        }
	$this->session->unset_userdata('erro');?>
        </div>

    <div id="principal">
        <div id="conteudo-wrapper">
            <div id="conteudo" class="clear wrapper">
                <div class="interno">
	
                                    
                                    